
// spa单页面应用路由定义

import  VueRouter from "vue-router";

let routes=[
    {
        path:"/",
        component:require("./components/m/MyFav")
    },

    {
        path:"/myfav",
        component:require("./components/m/MyFav")
    },
    {
        path:"/post",
        component:require("./components/m/Post")
    },
    {
        path:"/find",
        component:require("./components/m/Find")
    },
    {
        path:"/about",
        component:require("./components/m/About")
    },
    {
        path:"/detail/:id",
        component:require("./components/m/Detail")
    },
    {
        path:"/search",
        component:require("./components/m/Search")
    },
]

// mode:"history" 选加，路由地址方式
export default new VueRouter({
   // mode:"history",
    routes
})

